package sg.edu.ntu.metaweb.pastry;

import rice.p2p.commonapi.Id;
import rice.p2p.past.Past;
import rice.p2p.past.PastContent;
import rice.p2p.past.PastContentHandle;
import rice.p2p.past.PastException;
import rice.p2p.past.gc.GCPast;
import rice.p2p.past.gc.GCPastContent;
import rice.p2p.past.gc.GCPastContentHandle;
import rice.p2p.past.gc.GCPastMetadata;
import sg.edu.ntu.metaweb.storage.data.Webpage;

public class MetawebGCPastContent implements GCPastContent{
	
	private Id id;
	private Webpage page;
	
	
	public MetawebGCPastContent(Id id, Webpage page) {
		this.id = id;
		this.page = page;
	}
	
	
	public Webpage getWebpage() {
		return this.page;
	}
	
	@Override
	public boolean isMutable() {
		// TODO Auto-generated method stub
		return true;
	}
	
	@Override
	public Id getId() {
		// TODO Auto-generated method stub
		return this.id;
	}
	
	@Override
	public PastContentHandle getHandle(Past local) {
		// TODO Auto-generated method stub
		return null;
	}
	
	@Override
	public PastContent checkInsert(Id id, PastContent existingContent)
			throws PastException {
		// TODO Auto-generated method stub
		return this;
	}
	
	@Override
	public long getVersion() {
		// TODO Auto-generated method stub
		return 0;
	}
	
	@Override
	public GCPastMetadata getMetadata(long expiration) {
		// TODO Auto-generated method stub
		return null;
	}
	
	@Override
	public GCPastContentHandle getHandle(GCPast local, long expiration) {
		// TODO Auto-generated method stub
		return null;
	}
}